<template>
  <div class="findFollow">
    <span>⭐</span>
    <h2>达人推荐</h2>
    <span>⭐</span>
    <div class="user">
      <template v-for="(item, index) in 8" :key="item.id">
        <div class="item" @click="itemClick(item, index)">
          <img
            src="@/assets/img/find/4bba9dbbf50739e22a4ecf687b1db6fc.png"
            alt=""
          />
          <div class="text">用户名</div>
          <div class="fans">12345粉丝</div>
        </div>
      </template>
    </div>
    <div class="foot">
      <div class="userItem">
        <img
          src="@/assets/img/find/133ac2789472971fb8fda7c9041360f0.png"
          alt=""
        />
        <div class="textItem">用户名</div>
      </div>
      <div class="footItem">
        <img src="@/assets/img/find/3d84ef109e42a09fa86c0b02f36daa70.png" alt=""/>
        <img src="@/assets/img/find/3d84ef109e42a09fa86c0b02f36daa70.png" alt="">
        <img src="@/assets/img/find/3d84ef109e42a09fa86c0b02f36daa70.png" alt="">
        <p>
          时光荏苒，岁月如梭，一晃2018年又快过去了，抓住今年的狗尾巴，趁年底走一波！
        </p>
          <span><img src="@/assets/img/find/Stroke 1.png" alt=""> 32
            <img src="@/assets/img/find/Oval 4.png" alt="">11
          </span>
    </div>
    </div>
  </div>
  <div class="absImg" >
  <img src="@/assets/img/find/icon_fabu@2x.png" alt="" />
  </div>
</template>

<script setup>
import { ref } from "vue";
import { useRouter } from "vue-router";
import starHome from "./starHome.vue";

const router = useRouter();
const itemClick = () => {
  router.push("/starHome");
};
</script>

<style lang="scss" scoped>
.findFollow {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  span {
    margin-top: 4px;
  }
  h2 {
    font-weight: normal;
  }
  .user {
    margin: 10px 0;
    display: flex;
    overflow-x: auto;
    height: 90px;
    padding: 0 10px;
    //  消除x滚动条
    &::-webkit-scrollbar {
      display: none;
    }
    // border-bottom: 1px solid;
    .item {
      flex-shrink: 0;
      width: 70px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      img {
        width: 50px;
        height: 50px;
        border-radius: 25px;
      }
      .text {
        font-size: 14px;
        margin-top: 4px;
      }
      .fans {
        font-size: 12px;
        margin-top: 4px;
      }
    }
  }

  .foot {
    display: flex;
    height: 400px;
    flex-direction: column;
    padding: 10px;
    
    .textItem{
      margin-left: 10px;
      
    }
    .userItem {
      display: flex;
      align-items: center;
      margin: 20px 0;
      
      img {
      width: 70px;
      height: 70px;
      border-radius: 50%;
    }
    }
    
    .footItem {
      display: flex;
      flex-direction: column;
      align-items:center;
      justify-content: space-around;
      height: 350px;
      flex-flow: wrap;
      // box-shadow: 1px 1px 3px #909090;
      img{
        width: 45%;
        height: 40%;
        box-shadow: 1px 1px 5px #909090;
        margin: 5px 0;
      }
      p{
        font-size: 12px;
        margin: 0 10px;
      }
      span{
        font-size: 14px;
        margin-left: 200px;
        color: #666666;
        // padding: 10px;
        height: 45px;
        // line-height: 45px;
        img{
          width: 12px;
          height: 12px;
          box-shadow: none;
          padding: 0 5px ;
        }
      }
    }
  }
}
.absImg {
  width: 60px;
  height: 60px;
  margin: 30px auto;
  img{
    width: 100%;
  }
}
</style>